import paramiko


def remote_put(ip, port, user, pwd, local_file, remote_file):
    transport = paramiko.Transport((ip, port))
    transport.connect(username=user, password=pwd)

    sftp = paramiko.SFTPClient.from_transport(transport)

    sftp.put(local_file, remote_file)

    transport.close()
